package com.zjitc.pigspring.bean.po;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("user")
public class User {

    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField("username")
    private String username;

    @TableField("password")
    private String password;

    @TableField("name")
    private String name;

    @TableField("avatar")
    private String avatar;

    @TableField("role")
    private String role;

    @TableField("phone")
    private String phone;

    @TableField("email")
    private String email;

    @TableField(exist = false)
    private String token;
}
